package com.huangpf.webservice;

import org.springframework.stereotype.Component;

import java.util.HashMap;

/**
 * Created by huangpf on 2016/12/21.
 */
@Component
public class WebServices {

    private HashMap map = new HashMap();

    public TestModel getPrice(TestModel testModel) {
        String huangpf = testModel.getHuangpf();
        Integer value = testModel.getValue();
        return testModel;
    }

    public void update(String symbol, double price) {
        map.put(symbol, new Double(price));
    }
}
